<template>
  <div class="table1-content">
    <div class="table_title">
      <p>完工情况：{{ dataList.length }}条记录</p>
      <div class="table_title_time">
        <el-date-picker
          v-model="value1"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          @change="changeTime($event, 'initWgqk')"
        >
        </el-date-picker>
      </div>
      <el-button
        class="table_title_time"
        type="primary"
        @click="changeTime($event, 'initWgqk', true)"
        >重置</el-button
      >
    </div>
    <el-table border height="300" :data="dataList" style="width: 100%">
      <el-table-column prop="teamName" label="班组名称" min-width="17%">
      </el-table-column>
      <el-table-column prop="contractCode" label="合同编号" min-width="17%">
      </el-table-column>
      <el-table-column prop="productCode" label="产品编号" min-width="18%">
      </el-table-column>
      <el-table-column prop="productName" label="产品名称" min-width="23%">
      </el-table-column>
      <el-table-column prop="productStandard" label="产品型号" min-width="17%">
      </el-table-column>
      <el-table-column prop="productNum" label="数量" min-width="8%">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { timeWhere } from "../_mixin";
export default {
  props: {
    dataList: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  mixins: [timeWhere],
  methods: {},
  mounted() {},
};
</script>

<style scoped lang="scss">
.table1-content {
  .table_title {
    padding: 8px;
  }
}
</style>
